<%@ page language="java" import="java.util.*,org.liufeng.course.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>请联系我们</title>
    
	<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />  
	<meta http-equiv="Cache-Control" content="no-cache" />  
	<meta name="viewport" content="width=device-width"/>  

  </head>
  
  <body>
    获取到的资源如下:
    
    country :<%= ((WeixinOauth2Resource)request.getAttribute("weixinOauth2Resource")).getCountry() %>
    <br>
    headImgUrl :<%= ((WeixinOauth2Resource)request.getAttribute("weixinOauth2Resource")).getHeadimgurl() %>
    <br>
    nickName :<%= ((WeixinOauth2Resource)request.getAttribute("weixinOauth2Resource")).getNickName()  %>
    <br>
    openId :<%= ((WeixinOauth2Resource)request.getAttribute("weixinOauth2Resource")).getOpenId()  %>
    <br>
    privilege :<%= ((WeixinOauth2Resource)request.getAttribute("weixinOauth2Resource")).getPrivilege() %>
    <br>
    province :<%= ((WeixinOauth2Resource)request.getAttribute("weixinOauth2Resource")).getProvice() %>
    <br>
    sex :<%= ((WeixinOauth2Resource)request.getAttribute("weixinOauth2Resource")).getSex() %>
    <br>
    
    
  </body>
</html>
